using System;
using System.Collections.Generic;
using System.Text;
using System.Web.UI;
using System.Globalization;

namespace GoogleMaps
{
	/// <summary>
	/// Represents the size in pixels of a rectangular area of the map.
	/// </summary>
	public class GSize
	{
		/// <summary>
		/// Converts an instance of this object to a javascript string.
		/// </summary>
		public string ToJavaScript()
		{
			return String.Format(CultureInfo.InvariantCulture, "new GSize({0}, {1})", Width.ToString(CultureInfo.InvariantCulture), Height.ToString(CultureInfo.InvariantCulture));
		}
	
		/// <summary>
		/// Gets or sets the width of the rectangle in pixels.
		/// </summary>
		public int Width { get; set; }

		/// <summary>
		/// Gets or sets the height of the rectangle in pixels.
		/// </summary>
		public int Height { get; set; }
	}
}
